package org.threegroup.service.impl;

import org.threegroup.entity.WareHouse;
import org.threegroup.mappers.WareHouseMappers;
import org.threegroup.service.WareHouseService;

import java.util.List;

public class WareHouseServiceImpl implements WareHouseService {

    private WareHouseMappers  wareHouseMappers;

    public WareHouseServiceImpl(WareHouseMappers  wareHouseMappers){
        this.wareHouseMappers = wareHouseMappers;
    }

    @Override
    public List<WareHouse> queryAllWareHouse() {
        return wareHouseMappers.queryAllWareHouse();
    }

    @Override
    public Integer addWareHouse(WareHouse wareHouse) {
        return wareHouseMappers.addWareHouse(wareHouse);
    }

    @Override
    public Integer deleteWareHouse(Integer wareHouseId) {
        return wareHouseMappers.deleteWareHouse(wareHouseId);
    }

    @Override
    public Integer updateWareHouse(WareHouse wareHouse) {
        return wareHouseMappers.updateWareHouse(wareHouse);
    }
}
